package com.xxxx.service.impl;

import com.xxxx.pojo.Order;
import com.xxxx.service.OrderService;
import com.xxxx.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author zzuli_huahua
 * @version 1.0
 * @date 2022/1/14 11:09
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private ProductService productService;

    @Override
    public Order selectOrderById(Integer id) {
        return new Order(id,"order-001","中国",22788D,
                productService.selectProductLists());
    }

}
